package com.etc.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.etc.entity.Friend;

@Repository
public interface FriendMapper {
	int deleteByPrimaryKey(Integer friendid);

	int insert(Friend record);

	int insertSelective(Friend record);

	Friend selectByPrimaryKey(Integer friendid);

	int updateByPrimaryKeySelective(Friend record);

	int updateByPrimaryKey(Friend record);
	
	//查询好友列表
	List<Friend> selectByPage(int start, int limit, String content, int userid);

	int selectCountByUserid(String content, int userid);
}